home *** CD-ROM | disk | FTP | other *** search
- /* */
-
- /**START libraries*/
- if ~show("L","rexxsupport.library") then
- if ~addlib("rexxsupport.library",0,-30) then do
- say "no rexxsupport.library"
- exit
- end
- if ~show("L","rxsocket.library") then
- if ~addlib("rxsocket.library",0,-30) then do
- say "no rxsocket.library"
- exit
- end
- if ~show("L","rmh.library") then
- if ~addlib("rmh.library",0,-30) then do
- say "no rmh.library"
- exit
- end
- /**END libraries**/
-
- prg = ProgramName("NOEXT")
-
- parm.0.value="";parm.1.value=""
- if ~RMH_ReadArgs("LOGIN,PASSWD") then do
- call PrintFault(IoErr(),prg)
- exit
- end
-
- if GenesisLogin("USER",parm.0.value,parm.1.value) then do
- say "--- Global User ---"
- say "Name: " user.NAME
- say "Passwd: " user.PASSWD
- say "Uid: " user.UID
- say "Gid: " user.GID
- say "Gecos: " user.GECOS
- say "Dir: " user.DIR
- say "Shell: " user.SHELL
- say "Flags: " user.FLAGS
- say "Maxtime:" user.MAXTIME
- say "-------------------"
- end
- else call err "no Global User logged in"
- exit
-
- err: procedure expose prg
- parse arg msg
- say prg":" msg
- exit
-